<%@ page language="java" import="java.util.*"
	contentType="text/html;charset=utf-8"%>
<%@ include file="/common/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>添加采集站点</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="Content-Language" content="zh-cn">
		<link id="editCss" rel="stylesheet" type="text/css"
			href="/css/style.css" />
		<link rel="stylesheet" type="text/css" href="/css/style.css">
		<script type="text/javascript" src="/js/base.js"></script>
		<script type="text/javascript" src="/js/crawler.js"></script>
<script type="text/javascript">
	function add(table) {
		var tr = table.insertRow(table.lastRowIndex); //插入行
		var td1 = tr.insertCell();
		var td2 = tr.insertCell();
		td1.innerHTML = "URL:";//<input id='url' name='url'/>
		td2.innerHTML = '名称';//：<input id="name" name="name"/>
	}
</script>
<script language=javascript>
	function add(form){
		form.submit();
		opener.location.reload();
	}
	function exit() {
		//alert("hi~");
		opener.location.reload();
	}
</script>
	</head>

	<body onunload="exit()">
		<form id="addForm" name="addForm" action="/crawler/websiteAction" method="post">
			<input type="hidden" name="method" id="method" value="add" />
			<table id="websiteTable" >
				<c:forEach begin="0" end="0">
					<tr><td>URL：<input id="url" name="url" /></td></tr>
					<tr><td>名称：<input id="title" name="title" /></td></tr>
					<tr><td>关键字：<input id="keywords" name="keywords" /></td></tr>
				</c:forEach>
			</table>
			<!-- <input type="button" id="addItem" name="addItem" value="添加条目" onclick="add(stationTable)" > -->
			<center>
				<input type="submit" value="添加" />
			</center>
		</form>
	</body>
</html>
